from app.util import Config
from app.ai_chater import AiChater


def main(config: Config):
    ai_chater = AiChater(config)
    
    while True:
        user_input = input('You> ')
        if user_input == 'quit':
            break

        ai_output = ai_chater.invoke(user_input)

        print('AI> ', ai_output, '\n')